#!/usr/bin/env python
#coding=utf-8
#import os

#This is a file that used to store some public methods, and all of these methods are class method

#read data from file
class ReadFile:

	@classmethod
	def readDAT(self, path):
		self.file = open(path,'rb')
		return self.file

	@classmethod
	def closeFile(self):
		self.file.close()

class WriteFile:

	@classmethod
	def writeDAT(self, filePath, content):
		self.file = open(filePath, 'w')
		for line in content:
			self.file.write(line)
			#self.file.write("\n")

	@classmethod
	def closeFile(self):
		self.file.close()

